<?php
/**
 * Created by PhpStorm.
 * User: minszen
 * Date: 2018/12/3
 * Time: 16:45
 */

namespace App\Observers;

use App\Models\Link;
use Cache;

class LinkObserver
{

    public function saved(Link $link)
    {

        Cache::forget($link->cache_key);
    }

}